package org.socialnetwork.app;

import org.abac4j.context.AbacContext;
import org.socialnetwork.pojo.Usuario;
import org.socialnetwork.service.PhotoService;

public class FotoPorDescricao {
	private Usuario theOtherPerson = new Usuario();
	
	public FotoPorDescricao() {
		Usuario theOtherPerson = new Usuario();
		theOtherPerson.setUserId(1);
	}
	
	public void execute() throws Exception {
		PhotoService service = AbacContext.createSafeObject(new PhotoService());
		System.out.println( service.getPicturesByDescription(theOtherPerson, "2") );
	}
	
	public static void main(String[] args) throws Exception {
		new FotoPorDescricao().execute();
	}
}